from rest_framework.serializers import ModelSerializer
from users.models import *
# class Newser(ModelSerializer):
#     class Meta:
#         model=New
#         fields='__all__'

# class Adser(serializers.ModelSerializer):
#     class Meta:
#         model=Ad
#         fields='__all__'
# class TypeModel(ModelSerializer):
#     class Meta:
#         model = Type
#         fields = '__all__'
#
#
# class BooksModel(ModelSerializer):
#     class Meta:
#         model = Books
#         fields = '__all__'
# class ShowBooks(ModelSerializer):
#     eg = TypeModel()
#
#     class Meta:
#         model = Books
#         fields = '__all__'
class Actorser(ModelSerializer):
    class Meta:
        model = Actor
        fields="__all__"

class Movieser(ModelSerializer):
    class Meta:
        model = Movie
        fields="__all__"

class Moviesers(ModelSerializer):
    class Meta:
        model = Movie
        fields="__all__"

class Teacherser(ModelSerializer):
    class Meta:
        model = Teacher
        fields="__all__"

class Studentser(ModelSerializer):
    class Meta:
        model = Student
        fields="__all__"
class AreaSer(ModelSerializer):
    class Meta:
        model=Address
        fields="__all__"
# class Category(ModelSerializer):
#     class Meta:
#         model=Category
#         fields="__all__"
class CateSer(ModelSerializer):
    class Meta:
        model = Category
        fields = "__all__"
class CartSer(ModelSerializer):
    class Meta:
        model = Cart
        fields = "__all__"

class ShowCartSer(ModelSerializer):
    class Meta:
        model = Cart
        fields = "__all__"

#
class CourseSer(ModelSerializer):
    class Meta:
        model = Course
        fields = "__all__"
class SclassSer(ModelSerializer):
    courses=CourseSer(read_only=True,many=True)
    class Meta:
        model = Sclass
        fields = "__all__"


